package chapter18;

public class Chapter18Main {

    public static void main(String[] args) {
        Node T = new Node();
        Btree.create(T);
        Btree.insert(T, 2);
        System.out.println(T);
        Btree.insert(T, 1);
        System.out.println(T);
        Btree.insert(T, 3);
        System.out.println(T);
        Btree.insert(T, 5);
        System.out.println(T);
        Btree.insert(T, 4);
        System.out.println(T);
        Btree.insert(T, 6);
        System.out.println(T);
        TargetNode node = Btree.search(T.root, 6);
        System.out.println(node);
        Btree.delete(T.root, 6);
        System.out.println(T);
        Btree.delete(T.root, 5);
        System.out.println(T);
    }
}
